package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WineStorageMapper;
import com.ruoyi.system.domain.WineStorage;
import com.ruoyi.system.service.IWineStorageService;

/**
 * 存酒信息Service业务层处理
 * 
 * @author xyz
 * @date 2025-06-07
 */
@Service
public class WineStorageServiceImpl implements IWineStorageService 
{
    @Autowired
    private WineStorageMapper wineStorageMapper;

    /**
     * 查询存酒信息
     * 
     * @param id 存酒信息主键
     * @return 存酒信息
     */
    @Override
    public WineStorage selectWineStorageById(Long id)
    {
        return wineStorageMapper.selectWineStorageById(id);
    }

    /**
     * 查询存酒信息列表
     * 
     * @param wineStorage 存酒信息
     * @return 存酒信息
     */
    @Override
    public List<WineStorage> selectWineStorageList(WineStorage wineStorage)
    {
        return wineStorageMapper.selectWineStorageList(wineStorage);
    }

    /**
     * 新增存酒信息
     * 
     * @param wineStorage 存酒信息
     * @return 结果
     */
    @Override
    public int insertWineStorage(WineStorage wineStorage)
    {
        return wineStorageMapper.insertWineStorage(wineStorage);
    }

    /**
     * 修改存酒信息
     * 
     * @param wineStorage 存酒信息
     * @return 结果
     */
    @Override
    public int updateWineStorage(WineStorage wineStorage)
    {
        return wineStorageMapper.updateWineStorage(wineStorage);
    }

    /**
     * 批量删除存酒信息
     * 
     * @param ids 需要删除的存酒信息主键
     * @return 结果
     */
    @Override
    public int deleteWineStorageByIds(Long[] ids)
    {
        return wineStorageMapper.deleteWineStorageByIds(ids);
    }

    /**
     * 删除存酒信息信息
     * 
     * @param id 存酒信息主键
     * @return 结果
     */
    @Override
    public int deleteWineStorageById(Long id)
    {
        return wineStorageMapper.deleteWineStorageById(id);
    }
}
